feef9cc9e862100bdc562353fbe3bb051fee039b,halyard-config/src/main/java/com/netflix/spinnaker/halyard/config/services/v1/AccountService.java,AccountService,getAllAccounts,#String#String#,50

Before Change


  public List<Account> getAllAccounts(String deploymentName, String providerName) {
    NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setProvider(providerName).withAnyAccount();

    List<Account> matchingAccounts = lookupService.getMatchingNodesOfType(filter, Account.class)
        .stream()
        .map(n -> (Account) n)
        .collect(Collectors.toList());

    if (matchingAccounts.size() == 0) {
      throw new ConfigNotFoundException(

After Change


  public List<Account> getAllAccounts(String deploymentName, String providerName) {
    NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setProvider(providerName).withAnyAccount();

    List<Account> matchingAccounts = lookupService.getMatchingNodesOfType(filter, Account.class);

    if (matchingAccounts.size() == 0) {
      throw new ConfigNotFoundException(